package com.itcpay.beans;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * spring概述-helloworld
 * @author liufeng
 * @date 2017-6-11
 */
public class App 
{
    public static void main( String[] args )
    {
    	//spring:IOC容器可以帮助我们动态创建对象
    	ApplicationContext ac = new ClassPathXmlApplicationContext("application-context.xml");
    	SysUser sysUser = (SysUser) ac.getBean("sysUser");
        System.out.println("sysUser:"+sysUser.toString());
    }
}
